<div class="modal-header">
    <h3 class="modal-title">查询参数管理</h3>
</div>
<div class="modal-body">
    <form class="form-horizontal form-content">
        <table class="custom_edit_table" name="dataset_param_Form">
            <thead>
            <tr>
                <th>参数名称</th>
                <th>参数类型</th>
                <th>默认值</th>
                <th>移除</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="item in items">
                <td>
                    <input type="text" ng-model="item.ParamName" class="form-control"
                           required placeholder="參數名稱">
                </td>
                <td>
                    <select ng-options="t.value as t.text for t in sqlParamTypes" class="form-control"
                            required ng-model="item.DataType"></select>
                </td>
                <td>
                    <input type="text" ng-model="item.DefaultValue" class="form-control"
                           required placeholder="参数默认值">
                </td>
                <td>
                    <button class="btn btn-warning" type="button" ng-click="remove(item)">移除</button>
                </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>
<div class="modal-footer">
    <button class="btn btn-success" type="button" ng-click="add()">新增</button>
    <button class="btn btn-primary" type="button" ng-disabled="checkInvalid(items)"
            ng-click="ok()">确认</button>
    <button class="btn btn-warning" type="button" ng-click="cancel()">取消</button>
</div>